VT-d: use clear_page() in alloc_pgtable_maddr()
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Jul 2020 15:49:29 +0000 (17:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Jul 2020 15:49:29 +0000 (17:49 +0200)
commit859447ab7b281bcdb6011aae990077abb8800ecf
tree7abcc4412cbf26ae0e8de44820611b32a2bce521
parentbf2a0ed11d4cf79e9863576f97a8d306fc3b1d40
VT-d: use clear_page() in alloc_pgtable_maddr()

For full pages this is (meant to be) more efficient. Also change the
type and reduce the scope of the involved local variable.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c